/**
 * 
 */
package edu.njit.hz278.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Rivers Zhang
 * 
 */
public class NestedConsultationHistoryOfPatient {

	/**
	 * Information about the physician
	 */
	protected String name;
	protected int empid;

	/**
	 * Information about the consultation
	 */
	protected long date;
	protected String notes;

	protected List<Diagnosis> diagnoses = new ArrayList<>();

	public NestedConsultationHistoryOfPatient() {
	}

	/**
	 * 
	 * @param name
	 * @param empid
	 * @param date
	 * @param notes
	 */
	public NestedConsultationHistoryOfPatient(String name, int empid,
			long date, String notes) {
		this.name = name;
		this.empid = empid;
		this.date = date;
		this.notes = notes;
	}

	public void addDiagnosis(String comm, String illDesc, int code) {
		diagnoses.add(new Diagnosis(comm, illDesc, code));
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getEmpid() {
		return empid;
	}

	public void setEmpid(int empid) {
		this.empid = empid;
	}

	public long getDate() {
		return date;
	}

	public void setDate(long date) {
		this.date = date;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public List<Diagnosis> getDiagnoses() {
		return diagnoses;
	}

	public void setDiagnoses(List<Diagnosis> diagnoses) {
		this.diagnoses = diagnoses;
	}

	public class Diagnosis {
		String comment;
		String illness;
		int illnessCode;

		public Diagnosis() {
		}

		Diagnosis(String comm, String ill, int code) {
			comment = comm;
			illness = ill;
			illnessCode = code;
		}

		public String getComment() {
			return comment;
		}

		public void setComment(String comment) {
			this.comment = comment;
		}

		public String getIllness() {
			return illness;
		}

		public void setIllness(String illness) {
			this.illness = illness;
		}

		public int getIllnessCode() {
			return illnessCode;
		}

		public void setIllnessCode(int illnessCode) {
			this.illnessCode = illnessCode;
		}

	}

}
